package hello

import (
	"github.com/gogf/gf/net/ghttp"
)

type Example struct {
	A string `json:"a"`
	B string `json:"b"`
	C int    `json:"c"`
}

// Hello is a demonstration route handler for output "Hello World!".
// @Summary 接口说明
// @Description 接口描述
// @Tags 接口分组
// @Param Authorization header string true "HTTP Header 参数示例"
// @Param data body hello.Example true "json body 参数示例"
// @Param page query int true "query?page=1&size=10 参数示例"
// @Param size query int true "query?page=1&size=10 参数示例"
// @Param name query string true "query?page=1&size=10&name=aaa 参数示例"
// @Param id path int true "/user/:id 参数示例"
// @Success 200 {object} hello.Example
// Success 200
// Success 200 {array} hello.Example
// @Router /hello [post]
func Hello(r *ghttp.Request) {
	r.Response.WriteStatusExit(404)
	r.Response.Writeln("Hello World!")
}
